{{assign var="title" value="文章左"}}
{{include file="admin/intop.html"}}
    <link rel="stylesheet" href="res/js/zTree/css/zTreeStyle/zTreeStyle.css" type="text/css">
    <script type="text/javascript" src="res/js/zTree/js/jquery.ztree.core-3.5.js"></script>
    <script type="text/javascript">
        var setting = {
            data: {
                simpleData: {
                    enable: true
                }
            }
        };
        var zNodes =[
            {{foreach from=$list item=menu}}
             { id:{{$menu.ID}}, pId:{{$menu.PARENT_ID}}, name:"{{$menu.NAME}}", url:"admin.php?ctl=article&act=list&id={{$menu.ID}}",target:"artRight"},
            {{/foreach}}
        ];

        $(document).ready(function(){
            $.fn.zTree.init($("#tree"), setting, zNodes);
        });
    </script>
    <div class="zTreeDemoBackground left">
        <ul id="tree" class="ztree"></ul>
    </div>
{{include file="admin/infoot.html"}}